<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<input type="text" name="usr" id="usr"/>
		<input type="button" value="设置用户" id="setusr"/>
		<input type="button" value="获取用户" id="getusr"/>
		<p id="p1">abcd</p>
		<script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$("#setusr").click(function () {
				$("#usr").val("孙悟空");
			});
			$("#getusr").click(function () {
				alert($("#usr").val());
			});
			$("#p1").html("<h1>大家好！</h1>");
			console.log($("#p1").text());
		</script>
	</body>
</html>
